package com.easy.dao;

import com.easy.bean.Employees;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IEmployeesDao {
    //添加
    int addEmployees(Employees employees);

    @Insert("insert into employees value()")
    int save(Employees employees);
    //获取
    Employees getEmployees(int id);
    //删除
    int delEmployees(int id);
    //修改
    int editEmployees(Employees employees);

    int edit(@Param("id") int id,@Param("employees")Employees employees);

    //查询
    List<Employees> getSearchEmployees(Employees employees);

    List<Employees> getSearchEmployees(@Param("employees") Employees employees, @Param("page") Page page);

    int getCount(@Param("employees")Employees employees);


    List<Employees> getEmployees(String checktext);
    //映射
    List<Employees> getEmployeesAndUSer();

}
